package com.ymall.controller.portal;

import com.ymall.common.ServerResponse;
import com.ymall.service.MsloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/mslo/")
public class CountMsloController {
    @Autowired
    private MsloService msloServicel;

    @RequestMapping(value = "add.do",method = RequestMethod.GET)
    @ResponseBody
    public ServerResponse<String> addMslo(){
        msloServicel.addMslo(2);
        return ServerResponse.createBySuccessMessage("Server get it");
    }

}
